

	@Test
	public void createBoard() {
		Board b = new BoardImpl1();
	}


    @Test
    public void redOnB1() {
        assertEquals(Color.RED, board.getColor(Location.B1));
    }


    public Color getColor(Location location) {
        if (locationColor.get(location) == null) {
            return Color.NONE;
        }
        return locationColor.get(location);
    }
	
	public Color getColor(Location location) {
       return Color.RED;
    }

    @Test
    public void blackOnR1() {
        assertEquals(Color.BLACK, board.getColor(Location.R1));
    }


    public Color getColor(Location location) {
        if (locationColor.get(location) == null) {
            return Color.NONE;
        }
        return locationColor.get(location);
    }
	
---

   @Test
    public void blackOnR1() {
        assertEquals(Color.BLACK, board.getColor(Location.R1));
    }
    
	
	
	
	public Color getColor(Location location) {
        if (location == Location.B1) {
            return Color.RED;
        } else (location == Location.R1) {
            return Color.BLACK;
        }
    }





    private HashMap<Location, Color> locationColor;

    public BoardImpl1() {
        locationColor = new HashMap<Location, Color>();
    }

    public Color getColor(Location location) {
        if (locationColor.get(location) == null) {
            return Color.NONE;
        }
        return locationColor.get(location);
    }
	
    public void reset() {
        locationColor.clear();
        locationColor.put(Location.R1, Color.BLACK);
        locationColor.put(Location.B1, Color.RED);
    }


---

    @Test
    public void twoOnB1() {
        assertEquals(2, board.getCount(Location.R1));
    }
    
    @Test
    public void fiveOnR6() {
        assertEquals(5, board.getCount(Location.R6));
    }
	
	
    private HashMap<Location, Integer> locationCount;

    public BoardImpl1() {
        locationColor = new HashMap<Location, Color>();
        locationCount = new HashMap<Location, Integer>();
    }

    public void reset() {
        locationCount.clear();
        locationColor.clear();
		
		locationColor.put(Location.R1, Color.BLACK);
        locationColor.put(Location.B1, Color.RED);
		
        locationCount.put(Location.R6, 5);
        locationCount.put(Location.B1, 2);
    }


    public Color getColor(Location location) {
        if (locationColor.get(location) == null) {
            return Color.NONE;
        }
        return locationColor.get(location);
    }
---

    @Test
    public void startConf() {
        assertEquals(Color.RED, board.getColor(Location.B1));
        assertEquals(Color.BLACK, board.getColor(Location.B6));
        assertEquals(Color.BLACK, board.getColor(Location.B8));
        assertEquals(Color.RED, board.getColor(Location.B12));
        assertEquals(Color.BLACK, board.getColor(Location.R12));
        assertEquals(Color.RED, board.getColor(Location.R8));
        assertEquals(Color.RED, board.getColor(Location.R6));
        assertEquals(Color.BLACK, board.getColor(Location.R1));
        
        assertEquals(2, board.getCount(Location.B1));
        assertEquals(5, board.getCount(Location.B6));
        assertEquals(3, board.getCount(Location.B8));
        assertEquals(5, board.getCount(Location.B12));
        assertEquals(5, board.getCount(Location.R12));
        assertEquals(3, board.getCount(Location.R8));
        assertEquals(5, board.getCount(Location.R6));
        assertEquals(2, board.getCount(Location.R1));
    }

    @Test
    public void complementStartConf() {
        assertEquals(0, board.getCount(Location.B2));
        assertEquals(0, board.getCount(Location.B3));
        assertEquals(0, board.getCount(Location.B4));
        assertEquals(0, board.getCount(Location.B5));
        assertEquals(0, board.getCount(Location.B7));
        assertEquals(0, board.getCount(Location.B9));
        assertEquals(0, board.getCount(Location.B10));
        assertEquals(0, board.getCount(Location.B11));
        
        assertEquals(0, board.getCount(Location.R2));
        assertEquals(0, board.getCount(Location.R3));
        assertEquals(0, board.getCount(Location.R4));
        assertEquals(0, board.getCount(Location.R5));
        assertEquals(0, board.getCount(Location.R7));
        assertEquals(0, board.getCount(Location.R9));
        assertEquals(0, board.getCount(Location.R10));
        assertEquals(0, board.getCount(Location.R11));
        
        assertEquals(Color.NONE, board.getColor(Location.B2));
        assertEquals(Color.NONE, board.getColor(Location.B3));
        assertEquals(Color.NONE, board.getColor(Location.B4));
        assertEquals(Color.NONE, board.getColor(Location.B5));
        assertEquals(Color.NONE, board.getColor(Location.B7));
        assertEquals(Color.NONE, board.getColor(Location.B9));
        assertEquals(Color.NONE, board.getColor(Location.B10));
        assertEquals(Color.NONE, board.getColor(Location.B11));
        
        assertEquals(Color.NONE, board.getColor(Location.R2));
        assertEquals(Color.NONE, board.getColor(Location.R3));
        assertEquals(Color.NONE, board.getColor(Location.R4));
        assertEquals(Color.NONE, board.getColor(Location.R5));
        assertEquals(Color.NONE, board.getColor(Location.R7));
        assertEquals(Color.NONE, board.getColor(Location.R9));
        assertEquals(Color.NONE, board.getColor(Location.R10));
        assertEquals(Color.NONE, board.getColor(Location.R11));
    }
	
	
    public void reset() {
        locationCount.clear();
        locationColor.clear();

        locationCount.put(Location.R1, 2);
        locationColor.put(Location.R1, Color.BLACK);

        locationCount.put(Location.R6, 5);
        locationColor.put(Location.R6, Color.RED);

        locationCount.put(Location.R8, 3);
        locationColor.put(Location.R8, Color.RED);

        locationCount.put(Location.R12, 5);
        locationColor.put(Location.R12, Color.BLACK);

        locationCount.put(Location.B1, 2);
        locationColor.put(Location.B1, Color.RED);

        locationCount.put(Location.B6, 5);
        locationColor.put(Location.B6, Color.BLACK);

        locationCount.put(Location.B8, 3);
        locationColor.put(Location.B8, Color.BLACK);

        locationCount.put(Location.B12, 5);
        locationColor.put(Location.B12, Color.RED);
    }
